﻿//浏览搜索
function SearBrowseDocs()
{
    var MinPrice=$("selPrice").value.split('-')[0];
    var MaxPrice=$("selPrice").value.split('-')[1];
    var re = /^[\d]{1,9}$/gi;
    if(MinPrice!=""&&MinPrice.search(re) == -1)MinPrice="";
    if(MaxPrice!=""&&MaxPrice.search(re) == -1)MaxPrice="";    
    var isFree = $("IsFreeID").checked?"1":"0";
    var isNativeBL=$("IsNativeBLID").checked?"1":"0";       
    top.location="/course/1-"+$("selTeachL").value+"-"+$("selLevel").value+"-"+$("selType").value+"-"+MinPrice+"-"+MaxPrice+"-"+isFree+"-"+isNativeBL+"-"+SortBy+".htm"; 
}

function Search()
{
    var key = $("textKey").value;
    if(key.length>10)
    {
        key=key.substring(0,9);
    } 
    top.location="/course/search.htm?key="+key;
}